package com.bone.modules.quartz.job;

import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
  *
  * @author : WangKeKe
  * @date : 2020/8/18 9:29
  * Description : 简单定时任务模板！
  *
*/


@Slf4j
public class SimpleJob implements Job {

    /**
     * 执行体
     * @param jobExecutionContext 可以获取JobDetail内的键值对信息
     * @throws JobExecutionException 任务执行异常
     */
   @Override
   public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

       log.info(" 普通定时任务 SampleJob !  时间:" + DateUtil.now());

   }

}


